#ifndef _U_QUERYBOOK_WIDGET_H_
#define _U_QUERYBOOK_WIDGET_H_

#include <QWidget>
#include "uclientserver.h"


class QLabel;
class QLineEdit;
class QPushButton;
class UDispBookWidget;
class UQueryBookWidget  : public QWidget
{
	Q_OBJECT

public:
	UQueryBookWidget(QWidget *parent = nullptr);
	~UQueryBookWidget();

private slots:
	void onClearButtonReleased();
	void onQueryButtonReleased();

private:
	void initButton();
	void initLabel();
	void initLineEdit();

	QLabel* m_pISBN;
	QLabel* m_pAuthor;
	QLabel* m_pTitle;
	QLineEdit* m_pISBNEdit;
	QLineEdit* m_pAuthorEdit;
	QLineEdit* m_pTitleEdit;
	QPushButton* m_pQueryButton;
	QPushButton* m_pClearButton;
	UDispBookWidget* m_pDispBookWidget;
};

#endif